home *** CD-ROM | disk | FTP | other *** search
- ` ------------------------------------------------------------------------
- ` Low Sperm Count DarkForge Snippet (11/10/2000)
- ` ------------------------------------------------------------------------
- ` Based on my snow code and then modified by D.Fawcett and Raven to add
- ` the "wind" effect. I swapped out the "dot" commands for a paste image
- ` because it's a lot faster.
-
- sync rate 0
- sync on
- hide mouse
-
- create bitmap 1,640,480
-
- spermcount=150
- snow=spermcount
- swift = 1
-
- dim sx(snow)
- dim sy(snow)
-
- for t=0 to snow
-
- sx(t)=rnd(screen width())
- sy(t)=rnd(screen height()-1)
-
- next t
-
- ` Draw the "flake"
-
- ink rgb(255,255,255),0 : dot 1,1
- ink rgb(100,100,100),0 : dot 1,0 : dot 1,2 : dot 0,1 : dot 2,1
- get image 1,0,0,3,3
-
- do
-
- cls 0
-
- for t=0 to snow
-
- if sy(t)>screen height()-1 then sy(t)=0
-
- v=rnd(15)+1
-
- if v<6 then sx(t)=sx(t)+swift
- if v>10 then sx(t)=sx(t)-1*windvel#-swift
-
- sy(t)=sy(t)+1
-
- if sy(t)>screen height()-1 then sy(t)=screen height()
- if sx(t)<1 then sx(t)=screen width()
-
- paste image 1,sx(t),sy(t)
-
- next t
-
- if rnd(200)=25 then windvel#=6
- windvel#=windvel#*.99
-
- if windvel#>1 then swift = 0
- if windvel#<1 then swift = 1
-
- copy bitmap 1,0
- sync
-
- loop
-
-